Skip to content

Conversation

@lingtonglu
Copy link
Contributor

No description provided.

@lingtonglu lingtonglu requested a review from wilsonccccc July 14, 2025 01:41
@lingtonglu lingtonglu requested a review from wilsonccccc July 14, 2025 03:39
app/main.py Outdated
async def invalid_provider_exception_handler(request: Request, exc: InvalidProviderException):
return HTTPException(
status_code=400,
detail=f"{str(exc)}. Please call the /models endpoint to check the valid providers/models id."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the full list of valid models with the link:
"""
Please verify your provider and model details by calling the /models endpoint or visiting https://tensorblock.co/api-docs/model-ids, and ensure you’re using a valid provider name, model name, and model ID.
"""

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error msg updated. However, we could include the full list of valid models. By the time we throw this error, we simply can't match the provider/model_ids with any existing one. I think the better way is just to provide the link here for them to look up

@lingtonglu lingtonglu requested a review from wilsonccccc July 14, 2025 19:40
@wilsonccccc wilsonccccc merged commit 3ed4ee9 into main Jul 14, 2025
3 checks passed
@lingtonglu lingtonglu deleted the log_reforge branch July 15, 2025 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants